package com.smartstate.dataManagement.service;

import com.smartstate.dataManagement.dto.EquipmentDTO;
import com.smartstate.dataManagement.entity.Equipment;
import org.quartz.SchedulerException;

import java.util.List;

public interface EquipmentService extends ServiceBase<Equipment> {

    boolean save(EquipmentDTO equipment) throws Exception;

    Boolean  additionalAttribute(EquipmentDTO equipmentDTO);


    /**
     * 根据设备类型查设备
     * @param type
     * @return
     */
    List<Equipment> selectEquipment(String type);

    boolean removeDeviceById(String id) throws SchedulerException;

    /**
     * 查询所有设备中设备类型为工业看板的设备
     * @return
     */
    List<Equipment> selectEquipmentType();
}